package org.xdq.命令模式;

public class CommandImpl  implements Command {

    private ActionPerson actionPerson;//命令的行动者

    public CommandImpl(ActionPerson actionPerson) {
        this.actionPerson = actionPerson;
    }

    @Override
    public void execute() {
        actionPerson.action();
    }
}
